<?
require("includes/constants.php");
require("includes/selectLanguage.php");

session_start();
if(!isset($_SESSION['userName']))
	exit();
?>

<div id="mainPopUp">
	<form id="tablesPopForm" name="tablesPopForm" method="post">
		<table id="inPopUpN" border="0" cellpadding="0" cellspacing="0">
			<tbody>
				<tr>
					<td><?=$a_languages['Tables.TableDescription']?></td>
					<td><input id="tableDescription" name="tableDescription" class="tableIn" type="text"></td>
				</tr>
				<?if($_SESSION['userType'] == $idTypeAdministrator){?>
					<tr>
						<td><?=$a_languages['Tables.TableRestaurant']?></td>
						<td><select id="cmbRestaurant" name="cmbRestaurant" class="tableIn"></select></td>
					</tr>
				<?}?>
			</tbody>
		</table>
		<button id="btnExit" class="itmIngBtnIn"><?=$a_languages['Common.Cerrar']?></button>
		<button id="btnSave" class="itmIngBtnIn"><?=$a_languages['Common.Guardar']?></button>
	</form>
</div>

<script>
	$(document).ready(function() {
		$_initPop();
	});
</script>